<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
		<script>
			function $$(id){
				return document.getElementById(id)
			}
			window.onload=function(){
				var cnv=$$("canvas");
				var cxt=cnv.getContext("2d");
				
				cxt.moveTo(25,25);
				cxt.lineTo(50,25);
				cxt.lineTo(25,50);
				cxt.lineTo(50,50);
				cxt.lineWidth=6;
//				cxt.lineJoin="miter";
				cxt.stroke();
				
				cxt.moveTo(60,60);
				cxt.lineTo(85,60);
				cxt.lineTo(60,85);
				cxt.lineTo(85,85);
				cxt.lineWidth=6;
				cxt.lineJoin="round";
				cxt.stroke();
				
				cxt.moveTo(120,120);
				cxt.lineTo(145,120);
				cxt.lineTo(120,145);
				cxt.lineTo(145,145);
				cxt.lineWidth=6;
				cxt.lineJoin="bevel";
				cxt.stroke();
			}
		</script>
	</head>
	<body>
		<canvas id="canvas" width="200"height="150" style="border: 1px dashed gray;"></canvas>
	</body>
</html>
